<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 85167
  Date: 2017/12/10
  Time: 11:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <c:import url="/WEB-INF/page/header.jsp"/>
</head>
<body>
<h4 class="m-t"></h4>
<div class="col-sm-12">
    <!-- Example Toolbar -->
    <div class="example-wrap">
        <div class="panel panel-default">
            <div class="panel-heading"><b>商户信息管理</b></div>
        </div>
        <div class="col-md-12">
            <form id="inputForm" class="form-horizontal" action="${pageContext.request.contextPath}/admin/user/doChangeUserInfo"
                  method="post">
                <table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
                    <tbody>
                    <tr>
                        <td class="width-15 active"><label class="pull-right"><font color="red">*</font>密码：</label></td>
                        <td class="width-35">
                            <input class="form-control required" type="password" name="password" value="">
                        </td>
                    </tr>
                    <tr>
                        <td class="width-15 active"><label class="pull-right"><font color="red">*</font>头像：</label></td>
                        <td class="width-35">
                            <c:choose>
                                <c:when test="${userInfo.wxPhoto eq null}">
                                    <img style="width: 50px;height: 50px;" id="imgFile"
                                         src="${pageContext.request.contextPath}/static/img/webuploader.png" onclick="uploadFile()">
                                </c:when>
                                <c:otherwise>
                                    <img style="width: 50px;height: 50px;" id="imgFile" src="${userInfo.wxPhoto}" onclick="uploadFile()">
                                </c:otherwise>
                            </c:choose>

                            <input id="file" type="hidden" name="wxPhoto" class="form-control" placeholder="" value="${userInfo.wxPhoto}">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="submit" class="btn btn-success form-control" name="提交" value="提交">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
</div>
<c:import url="/WEB-INF/page/footer.jsp"/>
</body>
</html>
